#include "game.h"

Memento *Originator::CreateMemento()
{
    Memento* m = new Memento;
    m->SetState(_state);
    return m;
}

void Originator::SetMemento(const Memento *m)
{
    *_state = *(const_cast<Memento*>(m)->GetState());
}
